import os
import platform


class Settings:
    OS_PLATFORM = platform.system()
    WORK_PATH = os.getcwd()
    """
    # macOS14.3上发现此处修复代码会导致运行异常，现已暂时移除
    if OS_PLATFORM == "Darwin":  # pragma: no cover
        WORK_PATH, _ = os.path.split(sys.argv[0])
    """
    # 配置文件夹名
    CONF_DIR: str = "DLS"
    if OS_PLATFORM != "Windows":
        CONF_DIR = "dlsconfig"
    # 定义兼容的版本
    COMPATIBLE_VERSIONS = ["ws1.0", "ws1.1", "ws1.2", "ws1.3", "ws1.4",
                           "ws1.5", "ws1.6", "ws1.7", "ws1.8", "ws1.9"]
